<template>
  <div class="MZMZ_PGB_HTML">

    <table class="table-1">
      <tr>
        <td>
          姓名：
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.BRXM }}
          </div>
          <el-input type="text" v-else v-model="allInfo.BRXM" class="w100"></el-input>


          年龄:
          <div v-if="pdf == 1" class="input_show inline-block ">
            {{ allInfo.AGE }}
          </div>
          <el-input type="text" v-else v-model="allInfo.AGE" style="width:50px"></el-input>


          住院号/门诊号：
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.ZYHORBRBH }}
          </div>
          <el-input type="text" v-else v-model="allInfo.ZYHORBRBH" style="width:120px"></el-input>

          <!-- <el-input type="text" v-else v-model="allInfo.ZYH" style="width:50px"></el-input> -->


          <!-- 门诊号：
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.BRBH }}
          </div>
          <el-input type="text" v-else v-model="allInfo.BRBH" style="width:150px"></el-input> -->

          科室：
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SJKS || '-' }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SJKS" class="w100"></el-input>

          病区：
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.BQMC || '-' }}
          </div>
          <el-input type="text" v-else v-model="allInfo.BQMC" class="w100"></el-input>

          床号：
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.CWH || '-' }}
          </div>
          <el-input type="text" v-else v-model="allInfo.CWH" class="w100"></el-input>
         
          <div v-if="pdf == 1" class="input_show inline-block">
            拟行检查：
            <template v-if="allInfo.NXJC == 1">无痛胃镜+肠镜</template>
            <template v-else-if="allInfo.NXJC == 2">无痛胃镜</template>

            <template v-else-if="allInfo.NXJC == 3">无痛肠镜</template>

            <template v-else-if="allInfo.NXJC == 4">无痛超声内镜</template>

            <template v-else-if="allInfo.NXJC == 5">无痛人流</template>

            <template v-else-if="allInfo.NXJC == 6">无痛宫腔镜</template>

            <template v-else-if="allInfo.NXJC == 7">无痛取环</template>

            <template v-else-if="allInfo.NXJC == 8">无痛诊刮</template>
            <template v-else-if="allInfo.NXJC == 9">无痛上环</template>

            <template v-else>{{ allInfo.NXJC }}</template>
          </div>
          <div v-else class="inline-block color-danger">
            拟行检查：
            <el-select class="cos-select" v-model="allInfo.NXJC" clearable placeholder="" @change="change_nxjc">
              <el-option label="无痛胃镜+肠镜" value="1">
              </el-option>
              <el-option label="无痛胃镜" value="2">
              </el-option>
              <el-option label="无痛肠镜" value="3">
              </el-option>
              <el-option label="无痛超声内镜" value="4">
              </el-option>
              <el-option label="无痛人流" value="5">
              </el-option>
              <el-option label="无痛宫腔镜" value="6">
              </el-option>
              <el-option label="无痛取环" value="7">
              </el-option>
              <el-option label="无痛诊刮" value="8">
              </el-option>
              <el-option label="无痛上环" value="9">
              </el-option>
            </el-select>
            <el-input type="text" v-model="allInfo.NXJC" class="w100"></el-input>
          </div>

        </td>
      </tr>

      <tr>
        <td>
          <span class="mr5">
            身高：
            <div v-if="pdf == 1" class="input_show inline-block">
              {{ allInfo.SG || '-' }}
            </div>
            <el-input type="text" v-else v-model="allInfo.SG" style="width:50px"></el-input> cm
          </span>

          <span class="mr5">
            体重：
            <div v-if="pdf == 1" class="input_show inline-block">
              {{ allInfo.TZ || '-' }}
            </div>
            <el-input type="text" v-else v-model="allInfo.TZ" style="width:50px"></el-input> kg
          </span>
          <span class="mr5">
            性别：
            <div v-if="pdf == 1" class="input_show inline-block">
              {{ allInfo.BRXB_STR }}
            </div>
            <el-input type="text" v-else v-model="allInfo.BRXB_STR" style="width:50px"></el-input>
          </span>


          <span class="mr5">
            BP:
            <div v-if="pdf == 1" class="input_show inline-block">
              {{ allInfo.BP_1 || '-' }}
            </div>
            <el-input type="text" v-else v-model="allInfo.BP_1" style="width:50px"></el-input>/
            <div v-if="pdf == 1" class="input_show inline-block">
              {{ allInfo.BP_2 || '-' }}
            </div>
            <el-input type="text" v-else v-model="allInfo.BP_2" style="width:50px"></el-input> mmHg

          </span>
          <span class="mr5">
            脉搏:
            <div v-if="pdf == 1" class="input_show inline-block">
              {{ allInfo.HR || '-' }}
            </div>
            <el-input type="text" v-else v-model="allInfo.HR" style="width:50px"></el-input> bpm
          </span>
        </td>
      </tr>
    </table>
    <table class="table-1" style="margin-top:2px;">
      <tr>
        <th colspan="5">系统疾病</th>
        <th style="width:250px;">高危因素与处理</th>
        <th>进一步诊疗</th>
      </tr>
      <tr>
        <td rowspan="8" style="width:16px">心 血 管 系 统</td>
        <!-- <td rowspan="8" style="width:35px">
          <el-checkbox v-model="allInfo.XXGXT_HAS">有</el-checkbox>
        </td>
        <td rowspan="8" style="width:35px">

          <el-checkbox v-model="allInfo.XXGXT_NO">无</el-checkbox>
        </td> -->

        <td colspan="2" rowspan="8" style="width:35px">
          <el-radio v-model="allInfo.XXGXT_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.XXGXT_HAS" label="2">无</el-radio>
        </td>


        <td colspan="2">
          <el-checkbox v-model="allInfo.XXGXT_GXYV">高血压病</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.XXGXT_XY_1">血压 >160/100mmHg</el-checkbox><br>
          <el-checkbox v-model="allInfo.XXGXT_XY_2">血压>180/110mmHg延期手术</el-checkbox>


        </td>
        <td rowspan="8" style="width:90px;">
          <div>

            <el-checkbox v-model="allInfo.XXGXT_YQSS">延期手术</el-checkbox><br>
            <el-checkbox v-model="allInfo.XXGXT_HZ">心内科会诊</el-checkbox><br>
            <el-checkbox v-model="allInfo.XXGXT_DTXDT">动态心电图</el-checkbox><br>

            <el-checkbox v-model="allInfo.XXGXT_AZQBQ">安装起搏器</el-checkbox><br>
            <el-checkbox v-model="allInfo.XXGXT_GMCTA">冠脉CTA</el-checkbox><br>
            <el-checkbox v-model="allInfo.XXGXT_XZCC">心脏彩超</el-checkbox>
          </div>
        </td>
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <td rowspan="4" style="width:16px">
          心律失常
        </td>
        <td> <el-checkbox v-model="allInfo.XXGXT_FC">房颤</el-checkbox></td>
        <td>
          <el-checkbox v-model="allInfo.XXGXT_XSL_1">心室率＞110次/分</el-checkbox>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <!-- <td>4</td> -->
        <td><el-checkbox v-model="allInfo.XXGXT_CDZZ">传导阻滞</el-checkbox></td>
        <td>
          <el-checkbox v-model="allInfo.XXGXT_CDZS_1">II度以上房室传导阻滞、左束支传导阻滞、病窦</el-checkbox>


        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <!-- <td>4</td> -->
        <td><el-checkbox v-model="allInfo.XXGXT_ZB">早搏</el-checkbox></td>
        <td>

          <el-checkbox v-model="allInfo.XXGXT_ZB_1">ECG形态单一稳定、循环稳定且无症状可行手术，必要时请心内科会诊</el-checkbox><br>
          <el-checkbox v-model="allInfo.XXGXT_ZB_2">ECG形态多样、有明显临床症状、循环不稳定，心内科会诊，延期手术</el-checkbox>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <!-- <td>4</td> -->
        <td><el-checkbox v-model="allInfo.XXGXT_QTHJXLSC">其它罕见心律失常</el-checkbox></td>
        <td>
          <el-checkbox v-model="allInfo.XXGXT_QTHJXLSC_1">心内科协助诊治，必要时延期手术</el-checkbox>

        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <td colspan="2"><el-checkbox v-model="allInfo.XXGXT_GXB">冠心病</el-checkbox></td>
        <!-- <td>5</td> -->
        <td>
          <div>
            <el-checkbox v-model="allInfo.XXGXT_GXB_1">新发心梗，限期手术应＞4-6周</el-checkbox><br>
            <el-checkbox v-model="allInfo.XXGXT_GXB_2">PCI术后行非心脏择期手术：裸金属支架＞1月, 药物涂层支架＞12月（限期手术＞6月），（PTCA）
            球囊扩张成形术＞2周</el-checkbox><br>
            <el-checkbox v-model="allInfo.XXGXT_GXB_3">未确诊，ECG提示有明显冠脉缺血或有心绞痛史，心内科会诊</el-checkbox>

          </div>

        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.XXGXT_XTXXZB">心脏瓣膜病/先天性心脏病</el-checkbox>

        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.XXGXT_XTXXZB_1">明显心悸、胸闷、紫紺，评估心功能</el-checkbox>


        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <!-- <td>2</td> -->
        <!-- <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.XXGXT_QT">其它</el-checkbox>


        </td>
        <!-- <td>5</td> -->
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.XXGXT_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.XXGXT_QT_1" style="width:170px"></el-input>

        </td>
        <!-- <td>7</td> -->
      </tr>

      <!------------------------------------------------------------------  呼 吸 系 统-->
      <tr>
        <td rowspan="4" style="width:16px"> 呼 吸 系 统</td>
        <!-- <td rowspan="4" style="width:35px">
          <el-checkbox v-model="allInfo.HXXT_HAS">有</el-checkbox>
        </td>
        <td rowspan="4" style="width:35px">
          <el-checkbox v-model="allInfo.HXXT_NO">无</el-checkbox>
        </td> -->

        <td colspan="2" rowspan="4" style="width:35px">
          <el-radio v-model="allInfo.HXXT_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.HXXT_HAS" label="2">无</el-radio>
        </td>


        <td colspan="2">
          <el-checkbox v-model="allInfo.HXXT_JXHHXTGR">急性呼吸系统感染</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.HXXT_JXHHXTGR_1">择期手术在感染充分控制1-2周后施行</el-checkbox>



        </td>
        <td rowspan="4">
          <el-checkbox v-model="allInfo.HXXT_YQSS">延期手术</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_HZ">呼吸科会诊</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_XQFX">血气分析</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_XBCT">胸部CT</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_FGNJC">肺功能检査</el-checkbox>
        </td>
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.HXXT_MXHHXTGR">慢性呼吸系统感染</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>

          <el-checkbox v-model="allInfo.HXXT_MXHHXTGR_1">肺结核（空洞型）、肺脓肿、重症支扩容易扩散、堵塞气道窒息、大出血</el-checkbox>


        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.HXXT_COPD">COPD</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_XC">哮喘</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>

          <el-checkbox v-model="allInfo.HXXT_COPD_1">喘息、呼吸困难，急性发作期，考虑延期手术</el-checkbox>

          <el-checkbox v-model="allInfo.HXXT_XC_1">带吸入性治疗药物进手术室</el-checkbox><br>

        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.HXXT_QT">其它</el-checkbox>
        </td>
        <!-- <td >5</td> -->
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.HXXT_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.HXXT_QT_1" style="width:170px"></el-input>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <!------------------------------------------------------  呼 吸 系 统-->
      <!------------------------------------------------------  肝-->

      <tr>
        <td rowspan="2">肝</td>
        <!-- <td rowspan="2"> <el-checkbox v-model="allInfo.G_HAS">有</el-checkbox>
        </td>
        <td rowspan="2">
          <el-checkbox v-model="allInfo.G_NO">无</el-checkbox>

        </td> -->

        <td colspan="2" rowspan="2">
          <el-radio v-model="allInfo.G_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.G_HAS" label="2">无</el-radio>
        </td>

        <td colspan="2">


          <el-checkbox v-model="allInfo.G_JXGY">急性肝炎</el-checkbox><br>
          <el-checkbox v-model="allInfo.G_GYH">肝硬化</el-checkbox><br>
          <el-checkbox v-model="allInfo.G_WDSDJMQZ">胃底食道静脉曲张</el-checkbox>

        </td>
        <!-- <td>5</td> -->
        <td>


          <el-checkbox v-model="allInfo.G_JXGY_1">肝病急性期考虑延期手术</el-checkbox><br>
          <el-checkbox v-model="allInfo.G_GYH_1">Child分级C级考虑延期手术</el-checkbox><br>
          <el-checkbox v-model="allInfo.G_WDSDJMQZ_1">肝功能（ALT、AST）在正常值2倍以上，需保肝治疗</el-checkbox>



        </td>
        <td rowspan="2">
          <el-checkbox v-model="allInfo.G_YQSS">延期手术</el-checkbox>



        </td>
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.G_QT">其它</el-checkbox>

        </td>
        <!-- <td>5</td> -->
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.G_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.G_QT_1" style="width:170px"></el-input>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <!------------------------------------------------------  肝-->

      <!------------------------------------------------------  肾-->
      <tr>
        <td>肾</td>
        <!-- <td> <el-checkbox v-model="allInfo.S_HAS">有</el-checkbox>
        </td>
        <td>
          <el-checkbox v-model="allInfo.S_NO">无</el-checkbox>
        </td> -->

        <td colspan="2">
          <el-radio v-model="allInfo.S_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.S_HAS" label="2">无</el-radio>
        </td>


        <td colspan="2">
          <el-checkbox v-model="allInfo.G_MXSB">慢性肾疾病</el-checkbox>
        </td>
        <td>
          <el-checkbox v-model="allInfo.G_MXSB_1">肾衰竭期（Scr＞450umol/L）</el-checkbox><br>
          <el-checkbox v-model="allInfo.G_MXSB_2">尿毒症期、血钾＞6.5mmol/L考虑透析治疗</el-checkbox>
        </td>
        <!-- <td></td> -->
        <td></td>
      </tr>

      <!------------------------------------------------------  肾-->
      <!-- 精 神、神 经、肌 肉 -->

      <tr>
        <td rowspan="4" style="width:16px"> 精 神 、 神 经 、 肌 肉</td>
        <!-- <td rowspan="4" style="width:35px">
          <el-checkbox v-model="allInfo.SJ_HAS">有</el-checkbox>
        </td>
        <td rowspan="4" style="width:35px">
          <el-checkbox v-model="allInfo.SJ_NO">无</el-checkbox>
        </td> -->


        <td colspan="2" rowspan="4" style="width:35px">
          <el-radio v-model="allInfo.SJ_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.SJ_HAS" label="2">无</el-radio>
        </td>




        <td colspan="2">
          <el-checkbox v-model="allInfo.SJ_TIA">TIA或脑卒中病史</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.SJ_TIA_1">期手术在发病后1-3个月后施行</el-checkbox>
        </td>
        <td rowspan="4">
          <el-checkbox v-model="allInfo.SJ_HZ">神经内科会诊</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_TCD">头颅TCD</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_TL">头颅CT/MR</el-checkbox><br>
          <el-checkbox v-model="allInfo.HXXT_JDMCC">颈动脉彩超</el-checkbox>
        </td>
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.SJ_DX">癫痫</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.SJ_DX_1">术前频繁发作，注意治疗药物相互作用</el-checkbox>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.SJ_JSJB">精神疾病</el-checkbox><br>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.SJ_JSJB_1">单胺氧化酶抑制剂需停用2周，慎用缩血管药物</el-checkbox>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.SJ_SJJRJB">神经肌肉疾病</el-checkbox>
        </td>
        <!-- <td >5</td> -->
        <td>
          <el-checkbox v-model="allInfo.SJ_SJJRJB_1">累及呼吸肌</el-checkbox>
          <el-checkbox v-model="allInfo.SJ_SJJRJB_2">恶性高热风险</el-checkbox>
        </td>
        <!-- <td>7</td> -->
      </tr>

      <!-- 精 神、神 经、肌 肉 -->

      <!-- 内分泌、代谢系统 -->
      <tr>
        <td rowspan="3">内 分 泌 、 代 谢 系 统</td>
        <!-- <td rowspan="3">
          <el-checkbox v-model="allInfo.NFM_HAS">有</el-checkbox>
        </td>
        <td rowspan="3">
          <el-checkbox v-model="allInfo.NFM_NO">无</el-checkbox>
        </td> -->
        <td colspan="2" rowspan="3">
          <el-radio v-model="allInfo.NFM_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.NFM_HAS" label="2">无</el-radio>
        </td>


        <td colspan="2">
          <el-checkbox v-model="allInfo.NFM_TNB">糖尿病</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.NFM_TNB_1"> 空腹血糖＞7mmol/L,随机血糖＞11.1mmol/L</el-checkbox><br>
          <el-checkbox v-model="allInfo.NFM_TNB_2"> 尿酮体（+）/糖化血红蛋白＞8.5%,血糖控制欠佳</el-checkbox>
        </td>
        <td rowspan="3">
          <el-checkbox v-model="allInfo.NFM_HZ">内分泌科会诊</el-checkbox>
        </td>
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.NFM_JK">甲亢</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.NFM_JK_1">HR＞100次/分，伴有心悸、易躁</el-checkbox>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="3">
          <el-checkbox v-model="allInfo.NFM_XBL">嗜铭细胞瘤</el-checkbox>
          <el-checkbox v-model="allInfo.NFM_ZDZ">原发性醛固酮增多症</el-checkbox>
          <el-checkbox v-model="allInfo.NFM_ZHZ">库欣综合症</el-checkbox><br>
          <el-checkbox v-model="allInfo.NFM_QT">其它</el-checkbox>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.NFM_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.NFM_QT_1" style="width:180px"></el-input>
        </td>
        <!-- <td>5</td>
        <td>6</td> -->
        <!-- <td>7</td> -->
      </tr>
      <!-- 内分泌、代谢系统 -->
      <!-- 血 液 系 统 -->
      <tr>
        <td>血液系统</td>
        <!-- <td> <el-checkbox v-model="allInfo.XYXT_HAS">有</el-checkbox></td>
        <td> <el-checkbox v-model="allInfo.XYXT_NO">无</el-checkbox></td> -->


        <td colspan="2">
          <el-radio v-model="allInfo.XYXT_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.XYXT_HAS" label="2">无</el-radio>
        </td>


        <td colspan="3">
          <el-checkbox v-model="allInfo.XYXT_ZDPX">重度贫血</el-checkbox>
          <el-checkbox v-model="allInfo.XYXT_NXZA">凝血功能障碍（瘀点、瘀斑、紫瘢/血友病关节畸形）</el-checkbox>

          <el-checkbox v-model="allInfo.XYXT_DXXB">低血小板血症</el-checkbox><br>
          <el-checkbox v-model="allInfo.XYXT_QT">其它</el-checkbox>

          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.XTXT_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.XTXT_QT_1" style="width:180px"></el-input>

        </td>
        <!-- <td>血液系统</td>
        <td>血液系统</td> -->
        <td> <el-checkbox v-model="allInfo.XYXT_HZ">血液科会诊</el-checkbox>
        </td>
      </tr>

      <!-- 特殊用药史 -->

      <tr>
        <td rowspan="5">特殊用药史</td>
        <!-- <td rowspan="5"><el-checkbox v-model="allInfo.TSYYS_HAS">有</el-checkbox></td>
        <td rowspan="5"><el-checkbox v-model="allInfo.TSYYS_NO">无</el-checkbox></td> -->



        <td colspan="2" rowspan="5">
          <el-radio v-model="allInfo.TSYYS_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.TSYYS_HAS" label="2">无</el-radio>
        </td>



        <td colspan="2">
          <el-checkbox v-model="allInfo.TSYYS_KGXYY">抗高血压药</el-checkbox>
          <el-checkbox v-model="allInfo.TSYYS_KXLSCY">抗心律失常药</el-checkbox>



        </td>
        <!-- <td>5</td> -->
        <td>
          <el-checkbox v-model="allInfo.TSYYS_KGXYY_1">术晨停用ACEI、ARB药物/利尿剂</el-checkbox>
          <el-checkbox v-model="allInfo.TSYYS_KXLSCY_2">术晨延续用B受体阻滞剂</el-checkbox>
        </td>
        <td rowspan="5">
          <el-checkbox v-model="allInfo.TSYYS_HZ">内科会诊</el-checkbox>
        </td>

      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.TSYYS_KNY">抗凝药</el-checkbox>
        </td>
        <!-- <td>5</td> -->
        <td>

          <el-checkbox v-model="allInfo.TSYYS_KNY_1">华法林停用5天，考虑桥接抗凝</el-checkbox>

          <el-checkbox v-model="allInfo.TSYYS_KNY_2">低分子肝素（皮下）行椎管内麻醉停用12h</el-checkbox>
          <el-checkbox v-model="allInfo.TSYYS_KNY_3">达比加群、利伐沙班、阿哌沙班行椎管内麻醉停用24-48h, 注意肾功能不全延长停用时间</el-checkbox>
        </td>
        <!-- <td>7</td> -->

      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.TSYYS_KXBBY">抗血小板药</el-checkbox>



        </td>
        <!-- <td>5</td> -->
        <td>

          <el-checkbox v-model="allInfo.TSYYS_KXBBY_1">氯毗格雷停用7天</el-checkbox>
          <el-checkbox v-model="allInfo.TSYYS_KXBBY_2">GPIIa/nib受体拮抗剂（替罗非斑、依替巴肽）停用24h且注意血小板功能</el-checkbox>

        </td>
        <!-- <td>7</td> -->

      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">
          <el-checkbox v-model="allInfo.TSYYS_JS">激素</el-checkbox>

        </td>
        <!-- <td>5</td> -->
        <td>

          <el-checkbox v-model="allInfo.TSYYS_JS_1">泼尼松或同等剂量激素＞20mg/d,使用＞3周，明显库欣综合征外貌，术中需替代治疗</el-checkbox>

        </td>
        <!-- <td>7</td> -->

      </tr>
      <tr>
        <!-- <td>1</td>
        <td>2</td>
        <td>3</td> -->
        <td colspan="2">

          <el-checkbox v-model="allInfo.TSYYS_QT">其它</el-checkbox>

        </td>
        <!-- <td>5</td> -->
        <td>

          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.TSYYS_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.TSYYS_QT_1" style="width:170px"></el-input>
        </td>
        <!-- <td>7</td> -->
      </tr>
      <!-- 烟、酒及药物依 赖、过敏史 -->
      <tr>
        <td colspan="3">烟、酒及药物依 赖、过敏史</td>
        <td colspan="4">
          <el-checkbox v-model="allInfo.GM_XY">吸烟</el-checkbox>
          <el-checkbox v-model="allInfo.GM_SJ">嗜酒</el-checkbox>
          <el-checkbox v-model="allInfo.GM_YWYL">药物依赖</el-checkbox>
          <el-checkbox v-model="allInfo.GM_YYWGM">药物过敏</el-checkbox><br>
          <el-checkbox v-model="allInfo.GM_YYWGMMC">过敏药物名称：</el-checkbox>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.GM_YYWGMMC_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.GM_YYWGMMC_1" style="width:180px"></el-input>
        </td>
      </tr>
      <!-- 烟、酒及药物依 赖、过敏史 -->
      <tr>
        <td colspan="3">月经史</td>
        <td colspan="4">

          LMP：<div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.YJ_YJS }}
          </div>
          <el-input type="text" v-else v-model="allInfo.YJS_LMP" style="width:180px"></el-input>
          早孕：
          <el-radio v-model="allInfo.YJS_ZY" label="1">是</el-radio>
          <el-radio v-model="allInfo.YJS_ZY" label="2">否</el-radio>
        </td>
      </tr>
      <!-- 手术史 -->
      <tr>
        <td>手术史</td>

        <td colspan="2">
          <el-radio v-model="allInfo.SSS_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.SSS_HAS" label="2">无</el-radio>
        </td>


        <td colspan="4">
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SSS_QT_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SSS_QT_1" style="width:390px"></el-input>
        </td>
      </tr>
      <!-- 手术史 -->

    </table>

    <table class="table-1" style="margin-top:2px">
      <tr>
        <th colspan="4" class="text-c">体格检查</th>
      </tr>
      <tr>
        <td>全身情况</td>
        <td>

          <el-radio v-model="allInfo.TGJC_QSQK" label="1">好</el-radio>
          <el-radio v-model="allInfo.TGJC_QSQK" label="2">一般</el-radio>
          <el-radio v-model="allInfo.TGJC_QSQK" label="3">差</el-radio>
          <el-radio v-model="allInfo.TGJC_QSQK" label="4">肥胖 </el-radio>

        </td>
        <td>意识状态</td>
        <td>


          <el-radio v-model="allInfo.TGJC_YSZT" label="1">清醒</el-radio>
          <el-radio v-model="allInfo.TGJC_YSZT" label="2">嗜睡</el-radio>
          <el-radio v-model="allInfo.TGJC_YSZT" label="3">昏迷</el-radio>


        </td>
      </tr>
      <tr>
        <td rowspan="2">气道评估</td>
        <td colspan="3">
          <el-checkbox v-model="allInfo.TGJC_QDPG_1"> 张口 ＜3cm</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_2">插管困难史</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_3">鼾声</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_4">颈短</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_5">小颌</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_6">头颈活动受限</el-checkbox><br>
          <el-checkbox v-model="allInfo.TGJC_QDPG_7">气管移位/压迫</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_8">气管肿瘤</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_9">有头面部放疗/外伤史</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_QDPG_10">其它</el-checkbox>

          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.TGJC_QDPG_10_TXT }}
          </div>
          <el-input type="text" v-else v-model="allInfo.TGJC_QDPG_10_TXT" style="width:100px"></el-input>


        </td>
        <!-- <td>3</td>
        <td>4</td> -->
      </tr>
      <tr>
        <!-- <td>1</td> -->
        <td colspan="3">
          Mallampati评分：


          <el-radio v-model="allInfo.TGJC_PF" label="1">I 级</el-radio>
          <el-radio v-model="allInfo.TGJC_PF" label="2">II 级</el-radio>
          <el-radio v-model="allInfo.TGJC_PF" label="3">Ⅲ级</el-radio>
          <el-radio v-model="allInfo.TGJC_PF" label="4">IV级</el-radio>

        </td>
        <!-- <td>3</td>
        <td>4</td> -->
      </tr>
      <tr>
        <td>牙齿</td>
        <td colspan="3">

          <el-checkbox v-model="allInfo.TGJC_YC_1">松动</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_YC_2">缺失</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_YC_3">义齿</el-checkbox>
          <el-checkbox v-model="allInfo.TGJC_YC_4">其它</el-checkbox>


          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.TGJC_YC_4_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.TGJC_YC_4_1" style="width:120px"></el-input>


        </td>
        <!-- <td>3</td>
        <td>4</td> -->
      </tr>

    </table>

    <!-- 实验室检查 -->
    <table class="table-1" style="margin-top:2px">
      <tr>
        <th class="text-c" colspan="10">实验室检查</th>
      </tr>
      <tr>
        <td>胸部X片</td>


        <td colspan="2">
          <el-radio v-model="allInfo.SYSJC_XBXP_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.SYSJC_XBXP_HAS" label="2">无</el-radio>
        </td>

        <!-- <td>
          <el-checkbox v-model="allInfo.SYSJC_XBXP_HAS">有</el-checkbox>

        </td>
        <td>
          <el-checkbox v-model="allInfo.SYSJC_XBXP_NO">无</el-checkbox>

        </td> -->
        <td colspan="7">

          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_XBXP_TXT }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_XBXP_TXT" style="width:300px"></el-input>
        </td>
      </tr>
      <tr>
        <td>心电图</td>
        <!-- <td>
          <el-checkbox v-model="allInfo.SYSJC_XDT_HAS">有</el-checkbox>

        </td>
        <td>
          <el-checkbox v-model="allInfo.SYSJC_XDT_NO">无</el-checkbox>

        </td> -->

        <td colspan="2">
          <el-radio v-model="allInfo.SYSJC_XDT_HAS" label="1">有</el-radio>
          <el-radio v-model="allInfo.SYSJC_XDT_HAS" label="2">无</el-radio>
        </td>

        <td colspan="7">
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_XDT_TXT }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_XDT_TXT" style="width:300px"></el-input>
        </td>
      </tr>
      <tr>
        <td>WBC</td>
        <td>Hb</td>
        <td>PLT</td>
        <td>PT</td>
        <td>APTT</td>
        <td>ALT</td>
        <td>Glu</td>
        <td>Cr</td>
        <td>K</td>
        <td>Na</td>
      </tr>
      <tr>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_1 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_1" style="width:50px"></el-input>
          ×10<sup>12</sup>/L
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_2 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_2" style="width:50px"></el-input>g/L
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_3 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_3" style="width:50px"></el-input>×10<sup>9</sup>/l
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_4 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_4" style="width:50px"></el-input>秒
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_5 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_5" style="width:50px"></el-input>秒
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_6 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_6" style="width:50px"></el-input>U/L
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_7 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_7" style="width:50px"></el-input>mmol/L
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_8 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_8" style="width:50px"></el-input>umol/L
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_9 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_9" style="width:50px"></el-input>mmol/L
        </td>
        <td>
          <div v-if="pdf == 1" class="input_show inline-block">
            {{ allInfo.SYSJC_10 }}
          </div>
          <el-input type="text" v-else v-model="allInfo.SYSJC_10" style="width:50px"></el-input>mmol/L
        </td>
      </tr>

    </table>

    <table class="table-1" style="margin-top:2px;">
      <tr>
        <th class="text-c">总体评估</th>
      </tr>
      <tr>
        <td>
          ASA分级：
          <el-radio v-model="allInfo.ZTPG_ASA" label="1">I级</el-radio>
          <el-radio v-model="allInfo.ZTPG_ASA" label="2">II级</el-radio>
          <el-radio v-model="allInfo.ZTPG_ASA" label="3">III级</el-radio>
          <el-radio v-model="allInfo.ZTPG_ASA" label="4">Ⅳ级</el-radio>
          <el-radio v-model="allInfo.ZTPG_ASA" label="5">V级</el-radio>


          <div class="mt5">

            心功能分级：
            <el-radio v-model="allInfo.ZTPG_XGN" label="1">I级</el-radio>
            <el-radio v-model="allInfo.ZTPG_XGN" label="2">II级</el-radio>
            <el-radio v-model="allInfo.ZTPG_XGN" label="3">III级</el-radio>
            <el-radio v-model="allInfo.ZTPG_XGN" label="4">Ⅳ级</el-radio>
          </div>

        </td>
      </tr>
      <tr>
        <td>
          麻醉建议：
          <div>
            1、麻醉风险：
            <el-radio v-model="allInfo.ZTPG_MZFX" label="1">低</el-radio>
            <el-radio v-model="allInfo.ZTPG_MZFX" label="2">中</el-radio>
            <el-radio v-model="allInfo.ZTPG_MZFX" label="3">高</el-radio>
          </div>
          <div>
            2、建议：
            <el-radio v-model="allInfo.ZTPG_JY" label="1">可实施手术/检査 </el-radio>
            <el-radio v-model="allInfo.ZTPG_JY" label="2">经相关专科诊疗后再进行评估</el-radio>
          </div>
        </td>

      </tr>
    </table>

  </div>
</template>
  
  
  
<script>
import { timeFormatter } from "UTILS/format";
import { simDeepCopy, getStorage, setStorage } from "UTILS/util";
import { CONSENT_GET_DOCTOR_DZQM,CONSENT_GET_PATIENT_XDT_INFO } from "_SERVICES/api";

export default {
  name: "MZMZ_PGB",
  props: {
    info: {},
    pdf: {},
    type:{} //1新增
  },
  data() {
    return {
      list: [],
      allInfo: {},
    };
  },
  created() { },
  watch: {
    info: {
      handler(val) {
        console.log(val)
        if (val.field_value) {
          this.allInfo = {
            ...JSON.parse(val.field_value)
          }
          //存在brbh、没有数据 、不是预览状态、 新增状态
          if(this.allInfo.BRBH && !this.allInfo.SYSJC_XDT_HAS && this.pdf!=1 && this.type==1){
            this.set_xdt()
          }
        }
      },
      deep: true, // 使用 deep 选项进行深度监视
      immediate: true,
    },
  },
  mounted() {
    let _this = this;
    var TableCustoms = document.getElementsByClassName("MZMZ_PGB_HTML");

    for (var i = 0; i < TableCustoms.length; i++) {
      // 给每个 input 元素添加 input 事件监听器
      TableCustoms[i].addEventListener("click", function() {
        // 输入框的值发生改变时执行的操作
        // _this.info.field_value = JSON.stringify(_this.allInfo);
        setTimeout(() => { //这里不设置，最后一次点击事情的值会获取不到，因为dom操作比js反应慢
          _this.info.field_value = JSON.stringify(_this.allInfo);
          // console.log(  _this.info.field_value)
        }, 100)
      });
    }
  },
  destroyed() { },
  methods: {
    change_nxjc(){
      this.info.field_value = JSON.stringify(this.allInfo);
    },
    set_xdt(){
      console.log("心电图内容")
      CONSENT_GET_PATIENT_XDT_INFO({
        BRBH: this.allInfo.BRBH
      }).then((res)=>{
        if(res.data && res.data.length){
          let info = res.data[0].impression
          this.$set(this.allInfo,'SYSJC_XDT_HAS','1')
          this.$set(this.allInfo,'SYSJC_XDT_TXT',info)
        }
      })
    }
  },
};
</script>
  
<style  lang="less">
.MZMZ_PGB_HTML {
  .cos-select {
    border-bottom: 1px solid #000;
  }

  .el-checkbox,
  .el-radio {
    margin-right: 2px;
    white-space: normal;
  }

  // .el-radio {
  //   margin-right: 10px;
  // }

  .el-checkbox__label,
  .el-radio__label {
    padding-left: 2px;
    white-space: normal;
    word-break: break-all;
    color: #000;
    font-size: 13px;
    display: inline;
  }


  .w100 {
    width: 100px;
  }

  .input_show {
    border-bottom: none !important;
  }

  .table-1 {
    width: 100%;
    border-collapse: collapse;

    /* 合并单元格边框 */
    td,
    th {
      border: 1px solid #000;
    }
  }
}
</style>
  
  